FROM php:7-alpine


# 修改成国内的源
RUN cp /etc/apk/repositories /etc/apk/repositories.bak && \
    echo "https://mirrors.aliyun.com/alpine/latest-stable/main/" > /etc/apk/repositories && \
    apk update && \
    apk add --no-cache --virtual .phpize-deps ca-certificates $PHPIZE_DEPS linux-headers tar curl wget && \
    update-ca-certificates && \
    docker-php-ext-install opcache pdo_mysql bcmath  pcntl && \
    apk del .phpize-deps && \
    rm -rf /var/cache/apk/* && \
    rm -rf /tmp/*